/**
 * @name: api封装
 * @date: 2020.2.13
 */
import Vue from 'vue'

var domain = '';
var domain2 = ''; 
if(process.env.NODE_ENV === 'development') {
	domain = '://47.99.146.68'; 
    // domain = '://192.168.1.4:8080';  
    // domain = 's://demo.uicsoft.com';
	// domain = 's://app.etubang.com';  
	// domain2 = 's://api.etubang.com';   
	domain = 's://zdft.etubang.com'
	// domain = 's://app.huajie001.com.cn';
} else {  
   domain = 's://app.huajie001.com.cn';
} 
  
const base = 'http' + domain + '/api/'; 
const socket = 'ws' + domain + '/etubang/';  

const api = {
	authUrl: base + 'uic-auth/',
	systemUrl: base + 'uic-system/',
	userUrl: base + 'uic-user/',
}

Vue.prototype.$api = api; 
Vue.prototype.$base = base; 
